<?php
session_start();
$username=$_SESSION['username'];

if(!isset($_SESSION['username'])){
    header("Location:index.php"); //重新定向到其他页面
    exit();
}
?>
<!DOCTYPE html>
<html lang="en"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <title>公众号助手</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <!-- Le styles -->
    <link href="bootstrap/css/bootstrap.css" rel="stylesheet">
    <style>
      body {
        padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
      }
    </style>
    <link href="bootstrap/css/bootstrap-responsive.css" rel="stylesheet">


    <link rel="stylesheet" href="bootstraptable/bootstrap-table.css">
 
  </head>

  <body>

    <div class="navbar navbar-inverse navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container">
          <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="brand" href="#">公众号助手</a>
          <div class="nav-collapse collapse">
            <ul class="nav">
              <li><a href="index2.php">首页</a></li>
              <li class="active"><a href="index3.php">加油站管理</a></li>

              <li><a href="setpwd.php">修改密码</a></li>
            </ul>
          </div><!--/.nav-collapse -->
        </div>
      </div>
    </div>

    <div class="container">
      <div class="page-header">
        <button type="button" id="query" class="btn btn-info">新增</button>
        <button type="button" id="query" class="btn btn-success">删除</button>
        <button type="button" id="query" class="btn btn-warning">查找</button>
      </div> 

      <div style="margin:0;padding:0;">
        <table id="dg1"></table>
      </div>   


    </div> <!-- /container -->

    <!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="jquery.js"></script>
    <script src="bootstrap/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
    <script type='text/javascript' src='js/easyui/jquery.easyui.min.js'></script>
    <script type='text/javascript' src='js/easyui/locale/easyui-lang-zh_CN.js'></script>
    <link rel='stylesheet' href='js/easyui/themes/default/easyui.css' type='text/css'>
    <link rel='stylesheet' href='js/easyui/themes/icon.css' type='text/css'>

  
<script type="text/javascript">
  
  $(document).ready(function(){
        $('#dg1').datagrid({
            width: 1202,
            height: 450,
            idField:'id',
            singleSelect: true,
            pageNumber: 1,
            pageSize: 10,
            pagination: true,
            rownumbers: true,
            idField: 'id',
            url: 'getAllData03.php',             

            columns: [[
                { field: 'ck', checkbox: true, hidden: false },
                { field: 'id', title: '序号', width: 50, hidden: false },        
                { field: 'name', title: '名称', width: 150},
                { field: 'address', title: '地址', width: 150},
                { field: 'latitude', title: '纬度', width: 150},
                { field: 'longitude', title: '经度', width: 150 },
                { field: 'updateTime', title: '创建时间', width: 850}
            ]],
            onLoadSuccess:function(data){  

            }
        });
   
  });
</script>



</body>
</html>

